﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using HWEngine.Configuration;

namespace HandWriter
{
	public partial class DocumentOptionsDialog : Form
	{
		public string Result;

		public DocumentOptionsDialog()
		{
			InitializeComponent();
		}

		private void btnOK_Click(object sender, EventArgs e)
		{
			Color c = Config.Configuration.ColorInEditor;
			StringBuilder res = new StringBuilder();
			res.AppendFormat("TextColorR:{0}", c.R);
			res.AppendLine();
			res.AppendFormat("TextColorG:{0}", c.G);
			res.AppendLine();
			res.AppendFormat("TextColorB:{0}", c.B);
			res.AppendLine();
			res.AppendFormat("LineWidth:{0}", Config.Configuration.LineWidthInEditor);
			res.AppendLine();
			res.AppendLine("startdata:go!");
			Result = res.ToString();
			DialogResult = DialogResult.OK;
			Close();
		}
	}
}
